import pandas as pd

# https://zhuanlan.zhihu.com/p/340119918
if __name__ == '__main__':
  # print(pd.Series([2,4,6,8]))
  
  # pd.set_option('display.unicode.ambiguous_as_wide', True)
  # pd.set_option('display.unicode.east_asian_width', True)
  
  # df = pd.DataFrame({'辣条': [14,20],'面包': [7,3],'可乐': [8,13],'烤肠': [10,6]})
  # print(df)
  # print(df.describe())
  
  # data = {
  #   '辣条': [14,20],'面包': [7,3],'可乐': [8,13],'烤肠': [10,6]
  # }
  # df2 = pd.DataFrame(data,index=['2023-01-02','2023-01-03'])
  # print(df2)
  # print(df2.describe())
  
  df3 = pd.read_csv('../data/emp.csv')
  # print(df3)
  # print(df3.head(6))
  # print(df3.head(8)['empno'])
  # print(df3.tail())
  # print(df3.info())
  print(df3.sort_values('sal',ascending=False,inplace=True))
  df3.to_csv('demo.csv',index=True)